home *** CD-ROM | disk | FTP | other *** search
/ Geek Games #12 / GEGA012.iso / Jogos de Azar / pokersuperstars.swf / scripts / DefineSprite_19_loading / frame_1 / DoAction.as
Text File  |  2006-01-17  |  679b  |  21 lines

  1. function loadedIndicatorFrame()
  2. {
  3.    var _loc2_ = int(_parent.getBytesLoaded() / _parent.getBytesTotal() * 65) + 2;
  4.    if(_loc2_ - lastFrame > 4)
  5.    {
  6.       lastFrame += 4;
  7.       loadedText = int(_parent.getBytesTotal() / 1024 * (lastFrame - 2) / 65) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
  8.    }
  9.    else if(_loc2_ - lastFrame > 0)
  10.    {
  11.       lastFrame++;
  12.       loadedText = int(_parent.getBytesLoaded() / 1024) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
  13.    }
  14.    else
  15.    {
  16.       loadedText = int(_parent.getBytesLoaded() / 1024) + "kb of " + int(_parent.getBytesTotal() / 1024) + "kb";
  17.    }
  18.    return lastFrame;
  19. }
  20. lastFrame = 1;
  21.